package com.bite.system.service.exam;


import com.bite.system.domain.exam.dto.ExamAddDTO;
import com.bite.system.domain.exam.dto.ExamEditDTO;
import com.bite.system.domain.exam.dto.ExamQueryDTO;
import com.bite.system.domain.exam.dto.ExamQuestAddDTO;
import com.bite.system.domain.exam.vo.ExamDetailVO;
import com.bite.system.domain.exam.vo.ExamVO;

import java.util.List;

public interface IExamService {

    //列表获取
    List<ExamVO> list(ExamQueryDTO examQueryDTO);

    //新增竞赛
    String add(ExamAddDTO examAddDTO);

    //竞赛增加题目
    boolean questionAdd(ExamQuestAddDTO examQuestAddDTO);

    //竞赛详情
    ExamDetailVO detail(Long examId);

    //编辑竞赛
    int edit(ExamEditDTO examEditDTO);

    //删除竞赛中题目
    int questionDelete(Long examId, Long questionId);

    //删除竞赛
    int delete(Long examId);

    //发布竞赛
    int publish(Long examId);

    //取消发布竞赛
    int cancelPublish(Long examId);
}
